package org.huang.properties.bean;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @描述: yml属性测试
 * @作者 Mr.Huang
 * @创建时间 2017-08-08
 * @版本: 1.0
 */
@Component
public class GirlBean {

    @Value("${girl.name}")
    private String name;
    @Value("${girl.age}")
    private Integer age;
    @Value("${girl.sex}")
    private String sex;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    @Override
    public String toString() {
        return "GrilBean{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", sex='" + sex + '\'' +
                '}';
    }
}
